package com.stoneframe.util.baseGuid;

import java.util.UUID;

public class GuidHelper {
	
	/**
	 * 得到32位的uuid
	 * @return
	 */
	public static String get32Uuid(){
		String uuid=UUID.randomUUID().toString().trim().replaceAll("-", "");
		return uuid;
	}
	
	/**
	 * 得到当前时间毫秒数 13位
	 * @return
	 */
	public static String getTimeUuid(){
		return String.valueOf(System.currentTimeMillis());
	}
	
	public static void main(String[] arg){
		System.out.println(get32Uuid());
		System.out.println(getTimeUuid());
	}

}
